<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var item = [
            { count: 10, name: 'H型钢' },
            { count: 15, name: 'H型钢2' },
            { count: 20, name: 'H型钢3' },
            { count: 10, name: 'H型钢4' },
            { count: 11, name: 'H型钢5' },
        ];
        item.sort((a, b) => {
            return b.count - a.count;
        })
        console.log(item);
    </script>
</body>

</html>